package com.lzp.wechat.entity.button;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@ApiModel(value = "点击类型菜单实体")
public class ClickButton extends AbstractButton {

    @ApiModelProperty(value = "菜单的响应动作类型", notes = "click表示点击类型")
    private String type;

    @ApiModelProperty(value = "菜单KEY值", notes = "用于消息接口推送，不超过128字节")
    private String key;

    public ClickButton(String name, String key) {
        super(name);
        this.type = "click";
        this.key = key;
    }

}
